<!--
	This page shows the register form after you click the register on the home page
-->
<?php 
include 'ecstore_v3_config.php';
include ($site_root . '/insp-modules/misc/config.php');?>
<?php
	$conn = mysql_connect($host, $user, $password) or die(mysql_error());
	mysql_select_db("travel");
	
	$sql = "SELECT * FROM mailers";
	$result = mysql_query($sql, $conn) or die(mysql_error());
?>

<?php include 'header.php'?>

<div id="Main">
    <div id="Content">
		
		<header class="row">
			<h2>Register</h2>
		</header>
		
		<form class="row" action="" method="post">
			<b>Email:</b>
			<p><input type="text" name="username"/>@
				<select name="mailbox">
				<?php
					while ($row = mysql_fetch_assoc($result)) {
						foreach ($row as $mail => $mailer) {
							echo "<option>$mailer</option>";
						}
					}
				?>
				</select>
			</p>
			<b>Phone:</b>
			<p><input type="text" name="phone"/></p>
			<input type="submit" class="button-primary" />

		</form>
		
	</div>

<?php include 'footer.php'?>